Change the console handling, to remove the loop and timeout if a console fails
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 27 Nov 2005 01:06:20 +0000 (01:06 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 27 Nov 2005 01:06:20 +0000 (01:06 +0000)
commitb2538b1c499ba6f532e2c4dd9e062c6f90053832
tree76ea43c2c6bcd680d8101cb09f6f48304316117f
parent83b3d6ce35e32fca01280d113731cd121d56967b
Change the console handling, to remove the loop and timeout if a console fails
to respond first time.  For restored and unpaused domains there is no need for
the console to output data, so we cannot use this as a way to detect the
liveness of a console.  Instead, a command must always be sent to the console,
which means that this failure can only be detected once the constructor of the
Console class has returned successfully.  The __chewall loop still remains, in
order to detect runaway consoles and to clear out previous data from the
console before executing commands, but we no longer treat failure of that
method to read data as a failure of the console itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xm-test/lib/XmTestLib/Console.py
tools/xm-test/tests/restore/01_restore_basic_pos.py
tools/xm-test/tests/unpause/01_unpause_basic_pos.py